Skip to content

[test] fix: register internal pytest marker#4359

Merged
yaoyu-33 merged 5 commits into
mainfrom
yuya/mcore-main-autofix-20260615-pr4357
Jun 16, 2026
Merged

[test] fix: register internal pytest marker#4359
yaoyu-33 merged 5 commits into
mainfrom
yuya/mcore-main-autofix-20260615-pr4357

Conversation

@yaoyu-33

Copy link
Copy Markdown
Contributor

Summary

Original bump PR: #4357
Target: main
Failure classification: Bridge broke itself

Root Cause

Launch_Unit_Tests_Core collected tests/unit_tests/models/qwen_vl/modelling_qwen3_vl/test_attention.py, which uses @pytest.mark.internal. The project runs pytest with --strict-markers, but pyproject.toml did not register internal, so collection failed before MCore-specific coverage ran.

Fix

  • Add internal to [tool.pytest.ini_options].markers.

Guards

None added or removed.

Validation

  • uvx --from pytest==9.1.0 pytest -c /tmp/mb_pyproject_before_4357.toml --override-ini addopts=--strict-markers /tmp/mb_internal_marker_repro.py --collect-only -q: failed before the fix with internal missing.
  • uvx --from pytest==9.1.0 pytest -c pyproject.toml --override-ini addopts=--strict-markers /tmp/mb_internal_marker_repro.py --collect-only -q: passed after the fix, 1 test collected.
  • CW interactive partition, standard Bridge container: uv run python -m pytest tests/unit_tests/models/qwen_vl/modelling_qwen3_vl/test_attention.py -v: passed, 1 passed, 33 warnings in 1.25s.
  • CW interactive partition, standard Bridge container: uv run pre-commit run --all-files: passed.

Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@yaoyu-33 yaoyu-33 requested a review from a team as a code owner June 15, 2026 14:20
@copy-pr-bot

copy-pr-bot Bot commented Jun 15, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@yaoyu-33

Copy link
Copy Markdown
Contributor Author

/ok to test 9397e03

Signed-off-by: Yu Yao <yaoyu.094@gmail.com>
@yaoyu-33 yaoyu-33 force-pushed the yuya/mcore-main-autofix-20260615-pr4357 branch from 9397e03 to 8565d45 Compare June 15, 2026 14:21
@yaoyu-33

Copy link
Copy Markdown
Contributor Author

/ok to test 8565d45

@claude

claude Bot commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

Light Code Review

Summary: Registers the internal pytest marker that was missing from pyproject.toml, fixing --strict-markers collection failures in CI. Also bumps MCore submodule and regenerates the lockfile.

The fix is correct and minimal. The @pytest.mark.internal usage in tests/unit_tests/models/qwen_vl/modelling_qwen3_vl/test_attention.py:129 is the only site using this marker, and the new registration in pyproject.toml resolves the strict-markers error.

No issues found.

Minor observations (non-blocking):

  • wrapt moved from stable 2.2.1 to RC 2.2.2rc1 and nvidia-cutlass-dsl from 4.5.2 to 4.6.0.dev0 in the lockfile. This is expected given prerelease = allow in pyproject.toml, but worth noting in case either introduces regressions.
  • pytest bumped from 9.0.3 to 9.1.0 (minor version) -- unlikely but possible source of behavior changes in test collection/execution.

Suggested test cases: No perf tests impacted.

@yaoyu-33 yaoyu-33 added area:ci ci CI, automation, test queue, or workflow infrastructure work full-test-suite needs-review PR is ready for code review and waiting on a reviewer labels Jun 15, 2026
Signed-off-by: yaoyu-33 <yaoyu.094@gmail.com>
@yaoyu-33

Copy link
Copy Markdown
Contributor Author

/ok to test 09511e3

Signed-off-by: yaoyu-33 <yaoyu.094@gmail.com>
@yaoyu-33

Copy link
Copy Markdown
Contributor Author

/ok to test f706d1d

@yaoyu-33

Copy link
Copy Markdown
Contributor Author

/ok to test 6e553da

@yaoyu-33 yaoyu-33 merged commit e9529c3 into main Jun 16, 2026
164 of 166 checks passed
@yaoyu-33 yaoyu-33 deleted the yuya/mcore-main-autofix-20260615-pr4357 branch June 16, 2026 05:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:ci ci CI, automation, test queue, or workflow infrastructure work full-test-suite needs-review PR is ready for code review and waiting on a reviewer

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants